/*!
 * nodeclub - site index controller.
 * Copyright(c) 2012 fengmk2 <fengmk2@gmail.com>
 * Copyright(c) 2012 muyuan
 * MIT Licensed
 */

/**
 * Module dependencies.
 */

var Content = require('../proxy').Content;
var _ = require('lodash');

exports.snowIndex = function (req, res, next) {
    res.render("snow_index");
}

exports.apiSnow = function (req, res, next) {
    Content.getContent("", function (err, result) {
        res.json(result
        );
    });
}

exports.saveSnow = function (req, res, result) {
    Content.save("snow", function (err, result) {
        res.json({data: result});
    })
}

